(function($){

	window.addEvent('domready', function(){
		var spinner = new MPG.Spinner();

		$('show').addEvent('click', function(){
			spinner.setMessage('It optimizes it for the device.');
			spinner.show();
		});

		$('hide').addEvent('click', function(){
			spinner.hide();
		});
	});

}(document.id));
